/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author zhozho
 */
@Entity
public class PlannedWeeklyDemand extends PlannedDemand {

    @ManyToOne
    private PlannedMonthlyDemand plannedMonthlyDemand;
    @OneToMany
    private List<PlannedDailyDemand> plannedDailyDemand = new ArrayList<PlannedDailyDemand>();
    private Long numberOfWorkingDay;
    private String week;
    //private WeeklyMaterialRequirement weeklyMaterialRequirement;

    public Long getNumberOfWorkingDay() {
        return numberOfWorkingDay;
    }

    public void setNumberOfWorkingDay(Long numberOfWorkingDay) {
        this.numberOfWorkingDay = numberOfWorkingDay;
    }

    public List<PlannedDailyDemand> getPlannedDailyDemand() {
        return plannedDailyDemand;
    }

    public void setPlannedDailyDemand(List<PlannedDailyDemand> plannedDailyDemand) {
        this.plannedDailyDemand = plannedDailyDemand;
    }

    public PlannedMonthlyDemand getPlannedMonthlyDemand() {
        return plannedMonthlyDemand;
    }

    public void setPlannedMonthlyDemand(PlannedMonthlyDemand plannedMonthlyDemand) {
        this.plannedMonthlyDemand = plannedMonthlyDemand;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }
    
    
}
